package xyz.hubery.model;


public class Constants {

    /**
     * 秒杀商品延时队列
     */
    public static final String SECKILL_GOODS_DELAY_TOPIC = "seckill_goods_delay_queue";

    /**
     * 秒杀商品进入秒杀前禁止修改的时间长度(分)
     */
    public static final long SECKILL_GOODS_FORBIDDEN_TIME_LENGTH = 5L;

    /**
     * 检查订单状态的队列名称
     */
    public static final String CHECK_ORDER_STATUS_TOPIC = "check_orders_queue";

    /**
     * 同步商品数据到ES的队列名称
     */
    public static final String SYNC_GOODS_TOPIC = "sync_goods_queue";


    public static final String SYNC_GOODS_TAG = "sync_goods";
    public static final String DEL_GOODS_TAG = "del_goods";

    /**
     * 更新购物车缓存中的商品数据
     */
    public static final String UPDATE_CART_TOPIC = "update_cart_queue";


    /**
     * Redis中购物车数据版本号的key
     */
    public static final String CART_VERSION_KEY = "cart_version:";

    /**
     * 同步库存操作的队列名称
     */
    public static final String SYNC_STOCK_OPERATION_TOPIC = "sync_stock_operation_queue";
}
